package com.dandelion.manager.system.repository;

import org.apache.ibatis.annotations.Param;

import com.dandelion.commons.repository.BaseMapper;
import com.dandelion.manager.system.domain.User;

public interface UserMapper extends BaseMapper<User> {
	
	User findByUsername(@Param("username")String username) ;
	
	User getLoginUser(@Param("username")String username, @Param("password")String password);
	
	void setUserAccountStatus(@Param("ids")Long[] ids, @Param("lockedStatus")Integer lockedStatus);
	
	void setUserEditableStatus(@Param("ids")Long[] ids, @Param("editableStatus")Integer editableStatus);
	
}